import { base } from "./api";
import axios from "./http";
import qs from "qs";

const RECORD = {
  // 获取用户管理数据
  getData: params =>
    axios.get(`${base.URL}/oilSmoke/role/selectAllByInfo`, { params }),
  // 更新用户管理数据
  upData: params =>
    axios.post(
      `${base.URL}/oilSmoke/role/editRole`,
      qs.stringify(params)
    ),
  // 新增用户管理数据
  addData: params =>
    axios.post(
      `${base.URL}/oilSmoke/role/addRole`,
      qs.stringify(params)
    )
};

export default RECORD;
